﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000525 RID: 1317
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class FENCIEGFAID : IMessage<FENCIEGFAID>, IMessage, IEquatable<FENCIEGFAID>, IDeepCloneable<FENCIEGFAID>, IBufferMessage
	{
		// Token: 0x17001104 RID: 4356
		// (get) Token: 0x06003B7C RID: 15228 RVA: 0x000A3A88 File Offset: 0x000A1C88
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<FENCIEGFAID> Parser
		{
			get
			{
				return FENCIEGFAID._parser;
			}
		}

		// Token: 0x17001105 RID: 4357
		// (get) Token: 0x06003B7D RID: 15229 RVA: 0x000A3A8F File Offset: 0x000A1C8F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return FENCIEGFAIDReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17001106 RID: 4358
		// (get) Token: 0x06003B7E RID: 15230 RVA: 0x000A3AA1 File Offset: 0x000A1CA1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return FENCIEGFAID.Descriptor;
			}
		}

		// Token: 0x06003B7F RID: 15231 RVA: 0x000A3AA8 File Offset: 0x000A1CA8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public FENCIEGFAID()
		{
		}

		// Token: 0x06003B80 RID: 15232 RVA: 0x000A3AB0 File Offset: 0x000A1CB0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public FENCIEGFAID(FENCIEGFAID other) : this()
		{
			this.magicUnitId_ = other.magicUnitId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06003B81 RID: 15233 RVA: 0x000A3AD5 File Offset: 0x000A1CD5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public FENCIEGFAID Clone()
		{
			return new FENCIEGFAID(this);
		}

		// Token: 0x17001107 RID: 4359
		// (get) Token: 0x06003B82 RID: 15234 RVA: 0x000A3ADD File Offset: 0x000A1CDD
		// (set) Token: 0x06003B83 RID: 15235 RVA: 0x000A3AE5 File Offset: 0x000A1CE5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint MagicUnitId
		{
			get
			{
				return this.magicUnitId_;
			}
			set
			{
				this.magicUnitId_ = value;
			}
		}

		// Token: 0x06003B84 RID: 15236 RVA: 0x000A3AEE File Offset: 0x000A1CEE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as FENCIEGFAID);
		}

		// Token: 0x06003B85 RID: 15237 RVA: 0x000A3AFC File Offset: 0x000A1CFC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(FENCIEGFAID other)
		{
			return other != null && (other == this || (this.MagicUnitId == other.MagicUnitId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06003B86 RID: 15238 RVA: 0x000A3B2C File Offset: 0x000A1D2C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.MagicUnitId != 0U)
			{
				num ^= this.MagicUnitId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06003B87 RID: 15239 RVA: 0x000A3B6B File Offset: 0x000A1D6B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06003B88 RID: 15240 RVA: 0x000A3B73 File Offset: 0x000A1D73
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06003B89 RID: 15241 RVA: 0x000A3B7C File Offset: 0x000A1D7C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.MagicUnitId != 0U)
			{
				output.WriteRawTag(16);
				output.WriteUInt32(this.MagicUnitId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06003B8A RID: 15242 RVA: 0x000A3BB0 File Offset: 0x000A1DB0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.MagicUnitId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.MagicUnitId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06003B8B RID: 15243 RVA: 0x000A3BEE File Offset: 0x000A1DEE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(FENCIEGFAID other)
		{
			if (other == null)
			{
				return;
			}
			if (other.MagicUnitId != 0U)
			{
				this.MagicUnitId = other.MagicUnitId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06003B8C RID: 15244 RVA: 0x000A3C1F File Offset: 0x000A1E1F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06003B8D RID: 15245 RVA: 0x000A3C28 File Offset: 0x000A1E28
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 16U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.MagicUnitId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x0400179A RID: 6042
		private static readonly MessageParser<FENCIEGFAID> _parser = new MessageParser<FENCIEGFAID>(() => new FENCIEGFAID());

		// Token: 0x0400179B RID: 6043
		private UnknownFieldSet _unknownFields;

		// Token: 0x0400179C RID: 6044
		public const int MagicUnitIdFieldNumber = 2;

		// Token: 0x0400179D RID: 6045
		private uint magicUnitId_;
	}
}
